package com.yuke.cloud.service.cmc.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;

@ApiModel(value="com.yuke.cloud.service.cmc.entity.CmsCouponSpec")
@Table(name = "cms_coupon_spec")
public class CmsCouponSpec {
    /**
     * 主键
     */
    @Id
    @ApiModelProperty(value="id主键")
    private Integer id;

    /**
     * 优惠券Id
     */
    @Column(name = "coupon_id")
    @ApiModelProperty(value="couponId优惠券Id")
    private Long couponId;


    /**
     * 商品规格id
     */
    @Column(name = "spec_id")
    @ApiModelProperty(value="specId商品规格id")
    private Long specId;

    /**
     * 商品产品id
     */
    @Column(name = "product_id")
    @ApiModelProperty(value="productId商品产品id")
    private Long productId;

    /**
     * 商品类别id
     */
    @Column(name = "category_id")
    @ApiModelProperty(value="categoryId商品类别id")
    private Long categoryId;

    /**
     * 关联类型
     */
    @Column(name = "type")
    @ApiModelProperty(value="type关联类型")
    private Integer type;


    /**
     * 商品状态id
     */
    @Column(name = "status")
    @ApiModelProperty(value="status状态")
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "update_user")
    @ApiModelProperty(value="updateUser")
    private Long updateUser;

    @Column(name = "update_time")
    @ApiModelProperty(value="updateTime")
    private Date updateTime;

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public CmsCouponSpec setId(Integer id) {
        this.id = id;
        return this;
    }

    /**
     * 获取优惠券Id
     *
     * @return coupon_id - 优惠券Id
     */
    public Long getCouponId() {
        return couponId;
    }

    /**
     * 设置优惠券Id
     *
     * @param couponId 优惠券Id
     */
    public CmsCouponSpec setCouponId(Long couponId) {
        this.couponId = couponId;
        return this;
    }

    /**
     * 获取商品规格id
     *
     * @return spec_id - 商品规格id
     */
    public Long getSpecId() {
        return specId;
    }

    /**
     * 设置商品规格id
     *
     * @param specId 商品规格id
     */
    public CmsCouponSpec setSpecId(Long specId) {
        this.specId = specId;
        return this;
    }

    /**
     * @return update_user
     */
    public Long getUpdateUser() {
        return updateUser;
    }

    /**
     * @param updateUser
     */
    public CmsCouponSpec setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
        return this;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public CmsCouponSpec setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
}